home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2004 New Year / INTERNET112.ISO / pc / software / windows / building / easy_php / easyphp16_setup.exe / {app} / phpmyadmin / index.php < prev    next >
Encoding:
PHP Script  |  2003-09-24  |  2.0 KB  |  68 lines

  1. <?php
  2. /* $Id: index.php,v 1.28 2002/03/30 14:39:21 loic1 Exp $ */
  3.  
  4.  
  5. /**
  6.  * Gets core libraries and defines some variables
  7.  */
  8. require('./libraries/grab_globals.lib.php');
  9. require('./libraries/common.lib.php');
  10.  
  11. // Gets the default font sizes
  12. PMA_setFontSizes();
  13.  
  14. // Gets the host name
  15. // loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
  16. if (empty($HTTP_HOST)) {
  17.     if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
  18.         $HTTP_HOST = $_ENV['HTTP_HOST'];
  19.     }
  20.     else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
  21.         $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
  22.     }
  23.     else if (@getenv('HTTP_HOST')) {
  24.         $HTTP_HOST = getenv('HTTP_HOST');
  25.     }
  26.     else {
  27.         $HTTP_HOST = '';
  28.     }
  29. }
  30.  
  31.  
  32. /**
  33.  * Defines the frameset
  34.  */
  35. // loic1: If left light mode -> urldecode the db name
  36. if (isset($lightm_db)) {
  37.     $db    = urldecode($lightm_db);
  38.     unset($lightm_db);
  39. }
  40. $url_query = 'lang=' . $lang
  41.            . '&server=' . $server
  42.            . (empty($db) ? '' : '&db=' . urlencode($db));
  43. ?>
  44. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
  45.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  46. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][2]; ?>" lang="<?php echo $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
  47. <head>
  48. <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?></title>
  49. <style type="text/css">
  50. <!--
  51. body  {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>}
  52. //-->
  53. </style>
  54. </head>
  55.  
  56. <frameset cols="<?php echo $cfgLeftWidth; ?>,*" rows="*">
  57.     <frame src="left.php?<?php echo $url_query; ?>" name="nav" frameborder="1" />
  58.     <frame src="<?php echo (empty($db)) ? 'main.php' : 'db_details.php'; ?>?<?php echo $url_query; ?>" name="phpmain" />
  59.  
  60.     <noframes>
  61.         <body bgcolor="#FFFFFF">
  62.             <p><?php echo $strNoFrames; ?></p>
  63.         </body>
  64.     </noframes>
  65. </frameset>
  66.  
  67. </html>
  68.